package forensicsGUI;

import javax.swing.JOptionPane;


/**
 * Provides GUI notification handlers
 * @author marc
 */
public final class GuiNotification {

    public static int ERROR = JOptionPane.ERROR_MESSAGE;
    public static int INFORMATION = JOptionPane.INFORMATION_MESSAGE;

    public static void displayNotification(String info, String title, int type) {
        if (type == ERROR || type == INFORMATION) {
            JOptionPane.showMessageDialog(null, info, title, type);
        } else {
            JOptionPane.showMessageDialog(null, info, title, JOptionPane.PLAIN_MESSAGE);
        }

    }
}
